/**
 * 公共的js方法
 * Created by admin on 2016/7/13.
 */
function modalOnLoad(obj) {
    if(obj.parents(".modal") == null) {
        return;
    }
    var html =  $("#assignRole").find(".modal-content");
    html.hide();
    obj.append("<div class='page-center'><img src='/static/img/ajax-loaders/ajax-loader-7.gif'></div>");
}
function modalRemoveLoad(obj){
    if(obj.parents(".modal") == null) {
        return;
    }
    var html =  $("#assignRole").find(".modal-content");
    html.show();
    obj.find(".page-center").remove();
}

